/**
 * 查询菜单列表--租户角色使用
 */
export const userLoadSystemMenuApi = ()=>{
    return useHttpPost("/menu/system/list",{})
}

/**
 * 查询菜单列表
 */
export const userLoadMenuApi = (body)=>{
    return useHttpPost("/menu/list",{body})
}

/**
 * 保存菜单
 */
export const useSaveMenuDataApi = (body)=>{
    return useHttpPost("/menu/save",{body})
}


/**
 * 修改菜单
 */
export const useUpdateMenuDataApi = (body)=>{
    return useHttpPost("/menu/update",{body})
}

/**
 * 根据ID查询菜单
 */
export const useGetMenuDataApi = (id)=>{
    return useHttpPost("/menu/get/"+id,{})
}

/**
 * 删除菜单
 */
export const useDelMenuDataApi = (id)=>{
    return useHttpPost("/menu/del/"+id,{})
}

/**
 * 根据字段修改状态
 */
export const useUpdateStatusMenuDataApi = (body)=>{
    return useHttpPost("/menu/update/status",{body})
}

/**
 * 批量通过
 * @param sysMenuBatchRequest
 * @return
 */
export const useBatchUpdateStatusMenuDataApi = (body)=>{
    return useHttpPost("/menu/batch/statuss",{body})
}

/**
 * 批量禁止
 */
export const useBatchUpdateForbiddensMenuDataApi = (body)=>{
    return useHttpPost("/menu/batch/forbiddens",{body})
}
